Page({

  /**
   * 页面的初始数据
   */
  data: {
      imgs:[
        "../../image/aoudi1.jpg",
        "../../image/dazong3.jpg",
        "../../image/aoudi4.jpg",
        "../../image/dazong1.jpg",
        "../../image/jili2.jpg",
        "../../image/bieke1.jpg",
        "../../image/linmu1.jpg",
      ],
      iconArray:[
        {
          id: 1,
          url:"../../image/aoudi2.jpg",
          text:"奥迪"
        },
        {
          id: 2,
          url:"../../image/dazong3.jpg",
          text:"奔驰"
        },
        {
          id: 3,
          url:"../../image/aoudi4.jpg",
          text:"宝马"
        },
        {
          id: 4,
          url:"../../image/dazong1.jpg",
          text:"大众"
        },
        {
          id: 5,
          url:"../../image/donfen2.jpg",
          text:"东风风光"
        },
        {
          id: 6,
          url:"../../image/bieke6.jpg",
          text:"别克"
        },
        {
          id: 7,
          url:"../../image/jili1.jpg",
          text:"吉利"
        },
        {
          id: 8,
          url:"../../image/linmu1.jpg",
          text:"铃木"
        }
      ],

      goodsList:[
        {
          id:"1",
          goodsImage:"../../image/aoudi2.jpg",
          goodsName:"奥迪 A3 Limousine",
          goodsAddress:"广州",
          goodsPrice:"200"
        },
        {
          id:"2",
          goodsImage:"../../image/linmu1.jpg",
          goodsName:"铃木 利亚纳A6两厢",
          goodsAddress:"北京",
          goodsPrice:"20.8"
        },
        {
          id:"3",
          goodsImage:"../../image/bieke1.jpg",
          goodsName:"别克 昂科旗",
          goodsAddress:"广州",
          goodsPrice:"50.8"
        },
      ]
  },

  AddId(pariot){
    // console.log(pariot)
    let dataid = pariot.currentTarget.dataset.index;
    // console.log(dataid)
    wx.setStorageSync('index', dataid)
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    
  },
  

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {
    
  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
    
  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {
    
  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {
    
  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {
    
  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {
    
  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
    
  }
})